module.exports = function ($scope, $stateParams, $state, $modal, $modalInstance, type, items, flag) {
    console.log(items, type, flag);
    // 本级项目初审
    if(type == '0' && flag == '1') {
        $scope.content = items.view_reason
    }
    if(type == '0' && flag == '2') {
        $scope.content = items.back_reason
    }
    if(type == '0' && flag == '3') {
        $scope.content = items.eliminate_reason
    }
    // 区县项目初审
    if(type == '1' && flag == '2') {
        $scope.content = items.recommend_district_message
    }
    if(type == '1' && flag == '3') {
        $scope.content = items.recommend_district_message
    }
    // 区县项目复核（责任处室）
    if(type == '3' && flag == '11'){
        $scope.content = items.view_reason
    }
    if(type == '3' && flag == '12'){
        $scope.content = items.back_reason
    }
    if(type == '3' && flag == '13'){
        $scope.content = items.eliminate_reason
    }
    // 本级项目复核、区县项目复核（规划处）
    if(type == '1' && flag == '11'){
        $scope.content = items.plan_reason
    }
    if(type == '1' && flag == '12'){
        $scope.content = items.plan_back_reason
    }
    if(type == '1' && flag == '13'){
        $scope.content = items.plan_back_reason
    }
    if(type == '0' && flag == '11'){
        $scope.content = items.plan_reason
    }
    if(type == '0' && flag == '12'){
        $scope.content = items.plan_back_reason
    }
    if(type == '0' && flag == '13'){
        $scope.content = items.plan_back_reason
    }
    if(type == '0' && flag == '10'){
        $scope.content = items.view_reason
    }
    if(type == '1' && flag == '10'){
        $scope.content = items.view_reason
    }
    $scope.cancel = function () {
        $modalInstance.close();
    };
}